body {
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    margin: 0 auto;
    font-size: 14px;
    font-family: -apple-system, Helvetica, sans-serif;
    color: #666;
}

.app {
    height: 45px;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.app ul li {
    float: left;
    height: 45px;
    background-color: #333333;
    line-height: 45px;
    text-align: center;
    color: #fff;
    list-style: none;
}

.app ul li:nth-child(1) {
    width: 8%;
}

.app ul li:nth-child(1) img {
    width: 10px;
}

.app ul li:nth-child(2) {
    width: 10%;
}

.app ul li:nth-child(2) img {
    width: 30px;
    /* 行内元素的基线 实现垂直居中*/
    vertical-align: middle;
}

.app ul li:nth-child(3) {
    width: 57%;
}

.app ul li:nth-child(4) {
    width: 25%;
    background-color: red;
}

.search-wrap {
    height: 44px;
    position: fixed;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    /* 解决外边距合并 */
    /* padding: 1px; */
    overflow: hidden;
    background-color: red;
}

/* 给左边的盒子之前加图片 */

.search-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url('../images/s-btn.png') no-repeat;
    background-size: 20px 18px;
    margin: 14px 0 0 15px;
}

.search-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
}

.search-login {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    color: #fff;
    line-height: 44px;
}

.search {
    /* 搜索盒子不给宽度 设置左右外边距 就会自适应变大变小 */
    height: 30px;
    /* x y */
    margin: 0 50px;
    background-color: #fff;
    border-radius: 15px;
    margin-top: 7px;
    position: relative;
}

.search .icon {
    height: 20px;
    width: 20px;
    background: url('../images/jd.png') no-repeat;
    background-size: 20px 15px;
    position: absolute;
    top: 8px;
    left: 10px;
}

/* 加个丨 */

.search .icon::after {
    content: "";
    display: block;
    width: 1.5px;
    height: 15px;
    background-color: #ccc;
    position: absolute;
    top: 0px;
    left: 25px;
}

.search-icon {
    position: absolute;
    top: 8px;
    left: 40px;
    width: 18px;
    height: 15px;
    background: url(../images/jd-sprites.png) no-repeat;
    /* 图片原来是400*xxx大小的 在移动端会被缩放成200px大小的 */
    background-size:200px auto;
    /* 图标在雪碧图的位置 负数是向左偏移 向上偏移 */
    background-position: -81px 0;
}

.main-content .silder img{
    width: 100%;
}

/* 去掉图片上方的间隙 */
img{
    vertical-align: middle;
}

.brand{
    width: 100%;
}
.brand img{
    width: 100%;
}

.brand div{
    width: 33.33%;
    float: left;
}

.navbar div{
    width: 20%;
    float: left;
    /* 对文字内容、图片、按钮等行内元素生效 */
    text-align: center;
}
.navbar div img{
   width: 2rem;
}
.navbar div span{
    display: block;
}
.navbar div a{
    text-decoration: none;
    color: #666;
}
.navbar{
    padding: 0.1px;
}

.news a{
    float: left;
    /* 加了边框不会掉到下面一行去 */
    box-sizing: border-box;
}
.news a img{
    width: 100%;
}
.news a:nth-child(1){
    width: 50%;
}
/* 从第二个儿子开始往后 23456个儿子 */
.news a:nth-child(n+2){
    width: 25%;
    border-left: 1px solid red;
}